<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>作用域范围隐式对象的使用</title>
</head>
<body>
<% pageContext.setAttribute("cityName", "Soochow"); %> 
<% request.setAttribute("university", "华东师范大学"); %>
<% session.setAttribute("bookName", "《Android应用开发实践教程》"); %>
<% application.setAttribute("cityName", "New York"); %>
<p>pageScope隐式对象中key为"cityName"的值：${pageScope.cityName }</p>
<p>requestScope隐式对象中key为"university"的值：${requestScope.university }</p>
<p>session隐式对象中key为"bookName"的值：${sessionScope.bookName }</p>
<p>applicationScope隐式对象中key为"cityName"的值：${applicationScope.cityName }</p>
<p>表达式\${cityName}的值：${pageScope.cityName}</p>
</body>
</html>